#pragma once
#include "book.h"
class AudioBook :
	public Book
{
public:
	AudioBook(const std::string &title, const std::string &author, const std::string &narrator):
		Book(title, author),
		m_narrator(narrator)
	{
		std::cout<< "AudioBook::AudioBook() default constructor!" << std::endl;
	}
	virtual ~AudioBook(void)
	{
		std::cout<< "AudioBook::~AudioBook() default dstructor!" << std::endl;
	}
	virtual void print() const
	{
		std::cout<< "AudioBook::print() I am a AudioBook function!" << std::endl;
		std::cout<< m_title.c_str() << std::endl;
		std::cout<< m_author.c_str() << std::endl;
		std::cout<< m_narrator.c_str() << std::endl;
	}
protected:
	std::string m_narrator;
};

